<template>
	<view>
		<navbar title="提现" :autoBack="true"></navbar>
		<scroll-view scroll-y="true" class="scbox">
			<view class="con">
				<view class="con__top">
					<image src="/static/my/txtbg.png" class="con__top__bg" mode=""></image>
					<view class="con__top__box">
						<view class="con__top__text">
							您的帐户余额
						</view>
						<view class="con__top__num">
							{{form.money}}
						</view>
					</view>
				</view>
				<view class="con__box">
					<view class="con__box__item">
						<view class="con__box__item__label">
							您的帐户号
						</view>
						<!-- <input type="text" class="con__box__item__inp" v-model="form.name" /> -->
						<view class="con__box__item__inp">
							{{form.name}}
						</view>
					</view>
					<view class="con__box__item">
						<view class="con__box__item__label">
							结算银行
						</view>
						<view class="con__box__item__inp">
							{{form.bank}}
						</view>
					</view>
					<view class="con__box__item">
						<view class="con__box__item__label">
							结算卡号
						</view>
						<view class="con__box__item__inp">
							{{form.cardno}}
						</view>
						<!-- <input type="text" class="con__box__item__inp" v-model="form.cardno" /> -->
					</view>
					<view class="con__box__title">
						充值金额
					</view>
					<view class="con__box__i">
						<view class="con__box__i__u">
							￥
						</view>
						<input type="number" class="con__box__i__inp" v-model="val" />
						元
					</view>
					<view class="footer">
						<image src="/static/my/btn.png" class="btn" mode=""></image>
						<view class="footer__text">
							确认提现
						</view>
					</view>
				</view>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	import user from '@/api/_user.js'
	export default {
		data() {
			return {
				form: {},
				val: ''
			};
		},
		onLoad() {
			user.myTx().then(res=>{
				if(res.data.code==1){
					this.form=res.data.msg
				}
			})
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F0F3F7;
	}

	.con {
		padding: 20rpx 30rpx;

		&__top {
			width: 690rpx;
			height: 240rpx;
			position: relative;
			margin-bottom: 30rpx;

			&__bg {
				width: 690rpx;
				height: 240rpx;
				position: absolute;
				top: 0;
				left: 0;
			}

			&__box {
				padding: 62rpx 0 0 50rpx;
				position: relative;
			}

			&__text {
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 28rpx;
				color: #010101;
				line-height: 28rpx;
				margin-bottom: 33rpx;
			}

			&__num {
				font-family: DIN Next LT Pro;
				font-weight: 400;
				font-size: 72rpx;
				color: #010101;
				line-height: 53rpx;
			}
		}

		&__box {
			padding: 16rpx 0 85rpx 30rpx;
			background-color: #fff;
			border-radius: 30rpx;

			&__item {
				display: flex;
				align-items: center;
				border-bottom: 2rpx solid #F9F9F9;
				height: 106rpx;
				padding-right: 35rpx;

				&__label {
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 26rpx;
					color: #6D6D6D;
					line-height: 26rpx;
				}

				&__inp {
					text-align: right;
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 26rpx;
					color: #030303;
					line-height: 38rpx;
					flex: 1;
				}
			}

			&__title {
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 26rpx;
				color: #010101;
				line-height: 26rpx;
				margin-top: 42rpx;
			}

			&__i {
				padding: 30rpx 0 20rpx;
				border-bottom: 3rpx solid #FAF9F9;
				display: flex;
				align-items: center;
				font-family: PingFang SC;
				font-weight: bold;
				font-size: 30rpx;
				color: #3A4E6D;
				line-height: 30rpx;
				margin-bottom: 83rpx;
				margin-right: 35rpx;

				&__u {
					font-family: PingFang SC;
					font-weight: bold;
					font-size: 36rpx;
					color: #3E5170;
					line-height: 26rpx;
				}

				&__inp {
					font-family: DIN Next LT Pro;
					font-weight: 500;
					font-size: 60rpx;
					color: #3A4E6D;
					min-height: 54rpx !important;
					line-height: 54rpx !important;
					flex: 1;
				}


			}
		}
	}

	.footer {
		position: relative;
		margin-left: 11rpx;
		.btn {
			width: 617rpx;
			height: 105rpx;
		}

		&__text {
			width: 617rpx;
			display: flex;
			justify-content: center;
			font-family: PingFang SC;
			font-weight: 500;
			font-size: 32rpx;
			color: #3A4E6D;
			line-height: 32rpx;
			// padding-top: 33rpx;
			position: absolute;
			padding-top: 33rpx;
			top: 0;
			left: 0;
		}
	}
</style>